package com.emser.unc.serializable;

public class NoSaleReportDTO extends ReportDTO{
	private static final long serialVersionUID = 1L;
	private Integer code;
	private String reason;
	
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
		setReason(code);
	}
	public String getReason() {
		return reason;
	}
	private void setReason(Integer code) {
		 switch(code) {
		 case 1: 
			 this.reason = "Cerrado.";
		     break;
		 case 2: 
			 this.reason = "Sin Dinero.";
		     break;
		 case 3: 
			 this.reason = "No esta el comprador.";
		     break;
		 case 4: 
			 this.reason = "No quiere servicio.";
		     break;
		 default: 
			 this.reason = "No especificado.";
		     break;
		 }
	}
}
